<div>
    <form class="form-horizontal bv-form"  role="form"  id="updateForm">
        <fieldset>
            <legend>基本信息</legend>
            <div class="form-group">
                <label class="col-sm-3 control-label">学生</label>
                <div class="col-sm-6">
                    <input type="text" disabled class="form-control" name="h_studentid" value="{$data['stu_nickname']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">所选课程</label>
                <div class="col-sm-6">
                    <select class="form-control" name="h_subjectid" style="height:32px;">
                        {volist name='subject' id='s'}
                        <option {if $s['s_id']==$data['h_subjectid']} selected {/if} value="{$s['s_id']}">{$s['s_name']}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">所选老师</label>
                <div class="col-sm-6">
                    <select class="form-control" name="h_teacherid" style="height:32px;">
                        {volist name='teacher' id='t'}
                        <option {if $t['tea_id']==$data['h_teacherid']} selected {/if} value="{$t['tea_id']}">{$t['tea_name']}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">上课日期</label>
                <div class="col-sm-6">
                    <input readonly type="text" class="form-control" name="h_date" value="{$data['h_date']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">预约状态</label>
                &nbsp;&nbsp;&nbsp;
                <div class="col-sm-5">
                    <label><input disabled type="radio" name="h_status" value="0" {if $data.h_status == 0} checked {/if}>&nbsp;&nbsp;&nbsp;未预约</label>
                    <label style="margin-left:30px;"><input disabled type="radio" name="h_status" value="1" {if $data.h_status == 1} checked {/if}>&nbsp;&nbsp;&nbsp;已预约</label>
                    <label><input disabled type="radio" name="h_status" value="2" {if $data.h_status == 2} checked {/if}>&nbsp;&nbsp;&nbsp;待批改</label>
                    <label style="margin-left:30px;"><input disabled type="radio" name="h_status" value="3" {if $data.h_status == 3} checked {/if}>&nbsp;&nbsp;&nbsp;待批改</label>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">学生作业</label>
                <div class="col-sm-6">
                    {if $data.h_status==2 || $data.h_status==3}
                    <a href="{$data['h_stuurl']}">点击查看</a>
                    {else}
                    无
                    {/if}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">老师批改</label>
                <div class="col-sm-6">
                    {if $data.h_status==3}
                    <a href="{$data['h_teaurl']}">点击查看</a>
                    {else}
                    无
                    {/if}
                </div>
            </div>

            <input type="hidden" name="h_id" value="{$data['h_id']}">
        </fieldset>
    </form>
</div>
<script>
//    $('#createtime_update').datepicker({
//        format : "yyyy-mm-dd",
//        todayBtn : "linked",
//        autoclose : true,
//        todayHighlight : true,
//        clearBtn : true
//    });
    $('input:radio').change(function () {
        var status = $(this).val();
        if(status == 1){
            $('#showorno').css('display','block');
        }else{
            $('#showorno').css('display','none');
        }
    });
</script>